repeat 
  if sonarReading(4) < 35 then
     stop(A)
     backward(B, 80)
  else
     forward(A, 80)
     forward(B, 80)
  end
  write("A:".. speedReading(A), 1)
  write("B:".. speedReading(B), 2)
until isPressed(ESCAPE)
stop(A)
stop(B)

